import os
script_path = os.path.abspath(os.path.dirname(__file__))
path = script_path + '/hsv_data.txt'
print(path)
if not os.path.exists(path):
    with open(path, 'w') as file:
        data = [[0,1],[2,3],[4,5]]
        for row in data:
            line = ' '.join(str(x) for x in row)
            file.write(line + '\n')
    print("setup data")
else:
    print("read data")
    with open(path, 'r') as file:
        lines = file.readlines()
        data = []
        for line in lines:
            data.append([float(x) for x in line.split()])
        print(data)
